//
//  XWXCustomSlider.m
//  TY_MotorRemoteControl
//
//  Created by xiaomei su on 2018/3/3.
//  Copyright © 2018年 xuweixin. All rights reserved.
//

#import "XWXCustomSlider.h"

@implementation XWXCustomSlider

- (CGRect)thumbRectForBounds:(CGRect)bounds trackRect:(CGRect)rect value:(float)value
{
    CGFloat width = [UIScreen mainScreen].bounds.size.height*0.21214393;
//    CGFloat height = [UIScreen mainScreen].bounds.size.height*0.10494753;
    rect.origin.x = rect.origin.x - width/2 ;
    rect.size.width = rect.size.width +width;
    rect.origin.y = rect.origin.y;
    return CGRectInset([super thumbRectForBounds:bounds trackRect:rect value:value], 38, 20);
}

@end
